﻿using System.Runtime.Serialization;
using System.Windows.Media.Media3D;
namespace GameBoard
{
    [DataContract]
    internal class CubeVisualFactory : BaseVisualFactory
    {
        public CubeVisualFactory(CubeVisualData data)
            : base(data)
        {
        }

        public override ModelVisual3D MakeVisual()
        {
            var cv = new CubeVisual();
            cv.PopulateVisualData(VisualData);
            return cv.VisualElement;
        }
    }
}